home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000140_icon-group-sender _Mon Jul 20 12:38:50 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id MAA12033
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 20 Jul 1998 12:38:49 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA07615; Mon, 20 Jul 1998 12:38:34 -0700
  7. From: Kostas Oikonomou <ko@mara.ho.att.com>
  8. Date: Mon, 20 Jul 1998 15:35:07 -0400 (EDT)
  9. To: icon-group@optima.CS.Arizona.EDU
  10. Subject: Reading numbers from a file
  11. X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs  Lucid
  12. Message-Id: <13747.39630.559540.280143@mara>
  13. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  14. Status: RO
  15. Content-Length: 484
  16.  
  17.  
  18. Hello,
  19.  
  20. This is probably a dumb question, but there doesn't seem to be an easy way to
  21. read a numbers from a file with Icon.  I mean a file consisting of lines, each
  22. line being a list of numbers (integers or reals), separated by blanks.
  23.  
  24. I finally wrote my own routine, but I don't want to reinvent thw wheel...
  25.  
  26. (I looked in the procs/ library, and found pack/unpack in binary.icn.  But I
  27. don't see how to get unpack to do what I want.)
  28.  
  29. Thanks for your help.
  30.  
  31.                 Kostas Oikonomou
  32.